#include <OgreException.h>

#define DLL_EXPORT __declspec(dllexport)

void (*handler_f)(Ogre::Exception*);

void call_ehandler(Ogre::Exception* e)
{
    if(handler_f)
    {
        handler_f(e);  //calls D code!
    }
}


extern "C" DLL_EXPORT void set_handler(void (*hf)(Ogre::Exception*))
{
    handler_f = hf;
}

